#!/bin/sh
basepath=/export/guojiangtao/dataset
echo "basepath路径: ${basepath}"

dataset=MSRA
echo "数据集: ${dataset}"

trainfile=msra_train.bmes
devfile=msra_dev.bmes
testfile=msra_test.bmes
echo "训练数据文件: ${trainfile},验证数据文件: ${devfile},测试数据文件: ${testfile}"

curPath=$(readlink -f "$(dirname "$0")")
echo $curPath

Param="--status test --test ${basepath}/${dataset}/${testfile} --saved_model ${curPath}/saved_model/${dataset} --saved_set ${curPath}/savedset/${dataset} "
echo $Param
echo "进行PeopleDaily数据集测试..."
python main.py $Param
Param="--status decode --raw ${basepath}/${dataset}/${testfile} --output ${dataset}decode.txt --saved_model ${curPath}/saved_model/${dataset} --saved_set ${curPath}/savedset/${dataset} "
echo $Param
echo "进行PeopleDaily数据集解码..."
python main.py $Param
echo 运行结束
